/**  
 * Project Name:api-webhook  
 * File Name:ChsiApi.java  
 * Package Name:com.example.service.webhook.business.chsi.api  
 * Date:2016年7月26日下午4:22:01  
 * Copyright (c) 2016, yuandong@51dojo.com All Rights Reserved.  
 *  
*/  
  
package com.example.service.webhook.business.jingdong.api;

import java.util.List;

import com.example.service.webhook.business.jingdong.dto.JdDeliverAddress;
import com.example.service.webhook.business.jingdong.dto.JdTradeDetailsRes;
import com.example.service.webhook.business.jingdong.dto.JdUserInfo;
import com.example.service.webhook.business.jingdong.dto.JdWealth;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * 
 * ClassName: JingdongApi    
 * date: 2016年9月9日 上午11:53:47   
 * @author yuandong  
 * @version   
 * @since JDK 1.6
 */
public interface JingdongApi {
	 //查询用户基本信息
	 @GET("/gateway/jingdong/v2.1/userinfo/{taskId}")
	 Call<JdUserInfo> getUaseInfo(@Path("taskId") String taskId);
	//查询用户收货地址
	 @GET("/gateway/jingdong/v2/deliveraddress/{taskId}")
	 Call<List<JdDeliverAddress>> getDeliverAddress(@Path("taskId") String taskId);
	 
	//查询用户资产信息
	@GET("/gateway/jingdong/v2/wealth/{taskId}")
	Call<JdWealth> getWealth(@Path("taskId") String taskId);
	
	@GET("/gateway/jingdong/v2.1/tradedetails/{taskId}")
    Call<JdTradeDetailsRes> getTradeDetails(@Path("taskId") String taskId,@Query("page") int page,@Query("pageSize") int pageSize);
    
	

}
  
